<div style="clear:both;height:5px;"></div>
<?php 
if(isset($_SESSION['config_template']))
{
	if($_SESSION['config_template']=='layoutmain_web1')
	{
		?>
		<link rel="stylesheet" type="text/css" href="/css/web1/sidebar2.css" media="all">
		<div class="top_box"><span></span></div>
		<div class="box base-mini ">
			<div class="head">
	            <h4 style="width:70%;float:left"><?php echo $title;?></h4>
	            <!-- Tạo cây bút chì cho click and change -->
						<?php if(isset($permission) && $permission=="true")  {?>
							<div style="float: right;">
							<ul class="gallery clearfix">
								<a href="/statistic/clickchange?iframe=true&width=350&height=220" rel="prettyPhoto[iframe]">
									<img src="/images/Pencil.png" style="width:20px ; height:20px;"></img>
								</a>
							</ul>
							</div>
						<?php  }?>
						<!-- End - Tạo cây bút chì cho click and change -->
	        </div>
			<div class="middle_box">
	            <div class="content mini-statistic">
		        	<table style="width:100%;">
		                <tr style="height:40px; text-align:center;">
		                    <td><img src="/images/web1/useronline.png" /></td>
		                    <td style="padding-top:5px;"><?php echo $slonline;?></td>
		                    <td style="padding-top:5px;"><?php echo $online; ?></td>
		                </tr>
		                <tr style="height:40px; text-align:center;">
		                    <td><img src="/images/web1/visitday.png" /></td>
		                    <td style="padding-top:5px;"><?php echo $sltruycapngay;?></td>
		                    <td style="padding-top:5px;"><?php echo $hits_day; ?></td>
		                </tr>
		                <tr style="height:40px; text-align:center;">
		                    <td><img src="/images/web1/visitmonth.png" /></td>
		                    <td style="padding-top:5px;"><?php echo $sltruycapthang;?></td>
		                    <td style="padding-top:5px;"><?php echo $hits_month; ?></td>
		                </tr>
		            </table>
		        </div>
	        
	    	</div>
    	</div>
		<div class="bottom_box"><span></span></div>
		<?php 
	}
	else 
	{
		if($_SESSION['config_template']=='layoutmain_web2')
		{?>
			<link rel="stylesheet" type="text/css" href="/css/web2/sidebar2.css" media="all">
			<!-- Statistic -->
			<div class="top_box"><span></span></div>
			<div class="box base-mini mini-statistic">
				<div class="head">
					<h4 ><?php echo $title;?>
		            <!-- Tạo cây bút chì cho click and change -->
							<?php if(isset($permission) && $permission=="true")  {?>
								<div style="float: right;">
								<ul class="gallery clearfix">
									<a href="/statistic/clickchange?iframe=true&width=350&height=220" rel="prettyPhoto[iframe]">
										<img src="/images/Pencil.png" style="width:20px ; height:20px;"></img>
									</a>
								</ul>
								</div>
							<?php  }?>
							<!-- End - Tạo cây bút chì cho click and change -->		
					</h4>			
				</div>
				<div class="content">
		        	<table style="width:100%;">
		                <tr style="height:40px; text-align:center;">
		                    <td><img src="/images/web2/useronline.png" /></td>
		                    <td style="padding-top:5px;"><?php echo $slonline;?></td>
		                    <td style="padding-top:5px;"><?php echo $online; ?></td>
		                </tr>
		                <tr style="height:40px; text-align:center;">
		                    <td><img src="/images/web2/visitday.png" /></td>
		                    <td style="padding-top:5px;"><?php echo $sltruycapngay;?></td>
		                    <td style="padding-top:5px;"><?php echo $hits_day; ?></td>
		                </tr>
		                <tr style="height:40px; text-align:center;">
		                    <td><img src="/images/web2/visitmonth.png" /></td>
		                    <td style="padding-top:5px;"><?php echo $sltruycapthang;?></td>
		                    <td style="padding-top:5px;"><?php echo $hits_month; ?></td>
		                </tr>
		            </table>
		        </div>
			</div>
		    <div class="bottom_box"><span></span></div>
		    <!-- End Statistic -->			
		<?php }
		else 
		{?>
		<!--<div id="categories">-->
				<div class="c_navigator">
					<p class="navi_content"><?php echo $title;?></p>
						<!-- Tạo cây bút chì cho click and change -->
						<?php if(isset($permission) && $permission=="true")  {?>
							<div style="float: right; margin-right:5px">
							<ul class="gallery clearfix">
								<a href="/statistic/clickchange?iframe=true&width=350&height=220" rel="prettyPhoto[iframe]">
									<img src="/images/Pencil.png" style="width:20px ; height:20px; margin-top:10px;"></img>
								</a>
							</ul>
							</div>
						<?php  }?>
						<!-- End - Tạo cây bút chì cho click and change -->
				</div> 
						<div style="float:right; margin-right:5px;font-weight:bold;">
						<!--<div class="box_small_top" ></div>-->
						<div class="box_small_content" style="height:auto !important;z-index : 101;position:relative;margin-top:-5px;">
							<div style="margin-top:3px;font-weight:bold;font-size:14px;">
							    <div style="float:right;width:21%;text-align:right;margin-right:7px;">
									<span style="margin-left:5px;"><?php echo $online; ?></span>
								</div>
								<div style="float:right;width:67%;text-align:left;">
									<span style="margin-left:5px;"><?php echo $slonline;?></span>
								</div>
								<div style="float:right;width:8%;text-align:right;">
									<img src="/images/1.png">
								</div>
							</div>
							<div style="margin-top:3px;font-weight:bold;font-size:14px;">
								<div style="float:right;width:21%;text-align:right;margin-right:7px;">
									<span style="margin-left:5px;"><?php echo $hits_day; ?></span>
								</div>
								<div style="float:right;width:67%;text-align:left;">
									<span style="margin-left:5px;"><?php echo $sltruycapngay;?></span>
								</div>
								<div style="float:right;width:8%;text-align:right;">
									<img src="/images/2.gif">
								</div>
							    
							</div>
							<div style="margin-top:3px;font-weight:bold;font-size:14px;">
								<div style="float:right;width:21%;text-align:right;margin-right:7px;">
									<span style="margin-left:5px;"><?php echo $hits_month; ?></span>
								</div>
								<div style="float:right;width:67%;text-align:left;">
									<span style="margin-left:5px;"><?php echo $sltruycapthang;?></span>
								</div>
								<div style="float:right;width:8%;text-align:right;">
									<img src="/images/3.gif">
								</div>
								
							</div>
							<div style="height:65px;"></div>
						</div>
						<!--<div class="box_small_bottom" style="margin-top:-25px;;z-index : 100;position:relative;"></div>-->

						</div>
			<!--</div>-->
			<?php }
	}
}?>
<div style="clear:both;"></div>